package com.lemonsun.service;

import com.lemonsun.pojo.Reply;
import com.lemonsun.pojo.Topic;

import java.util.List;

/*
*服务层接口
 */

public interface TopicService {


    //查询所有帖子
    List<Topic> topicListService();

    //发表帖子
     int addTopicInf(Topic topic);

    //查看某个帖子信息
    Topic findAllTopicbyId(Integer id);

    //点击量自增
    int add_click_amount_byId(Integer id);

    //查看某个帖子评论信息
    List<Topic> findAllReplyId(Integer id);

    //添加评论
    int addReplyInf(Reply reply);

}

